package com.dogstudio.popstart;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.dogstudio.popstart.view.GamePanel;

public class GameActivity extends Activity implements View.OnClickListener {
    private ImageView mIvPause;
    private ImageView mIvChange;
    private ImageView mIvClickOne;
    private GamePanel mGamepanel;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_game);
        mIvPause = (ImageView) findViewById(R.id.iv_pause);
        mIvChange = (ImageView) findViewById(R.id.iv_change);
        mIvClickOne = (ImageView) findViewById(R.id.iv_click);
        mGamepanel = (GamePanel) findViewById(R.id.game_panel);

        mIvPause.setOnClickListener(this);
        mIvChange.setOnClickListener(this);
        mIvClickOne.setOnClickListener(this);
        initData();
    }

    private void initData() {
        mGamepanel.startGame();


    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.iv_pause:

                break;
            case R.id.iv_change:

                break;
            case R.id.iv_click:

                break;
        }
    }
}
